package org.speed.ddd;

import java.util.Map;

public class Domain implements EventListener {
	
	
	LogModel<Map> LOGGER;
	
	
	void createOrder() {
		
		LOGGER = new LogModel(Domain.class,"createOrder");
		LOGGER.addParams("orderId", 1000000000000L);
		LOGGER.addParams("orderId", 1000000000000L);
		LOGGER.addParams("orderId", 1000000000000L);
		
		
		LOGGER.callSubLogs("shopService.queryShopById", "params={xxxxxxxxx},result={xxxxxxxxxxxxxxx}");
		LOGGER.callSubLogs("userService.findUserList", "params={xxxxxxxxx},result={xxxxxxxxxxxxxxx}");
		LOGGER.callSubLogs("emailService.sendSMS", "params={xxxxxxxxx},result={xxxxxxxxxxxxxxx}");
		
		
		EventPublisher.getInstance().notifyEvent(null);
		
		
	}


	@Override
	public void onAction(DomainEvent event) {
		
	}

}
